﻿namespace CrateMayhem.Common.Model
{
    public class World
    {
        public World(int level, string map, string solution)
        {
            Level = level;
            Map = map;
            Solution = solution.ToLower();
            Layout = map.Split('\n');
        }

        public int Level { get; private set; }
        public string Map { get; private set; }
        public string Solution { get; private set; }
        public string[] Layout { get; private set; }
        public int TotalMoves { get { return Solution.Length; } }
    }
}
